import router from '@/router'

export const toSingleDevParams = (data: {devId: string | number}) => {
  router.push({
    path: '/CBC/dataOverview/singleDevParams',
    query: data
  })
}

export const toSingleParam = (data: {devId: string | number; paramName: string}) => {
  router.push({
    path: '/CBC/dataOverview/singleDevParams/singleParam',
    query: data
  })
}

export const toDevInfo = (devInfo: object) => {
  console.log(devInfo.devInfo)

  router.push({
    path: '/deviceManagement/home/deviceInfo',
    query: devInfo.devInfo
  })
}

/**前往异常管理 */
export const toExceptionManagement = () => {
  router.push({
    path: '/exceptionManagement/home'
  })
}
/**前往标准配置 */
export const toStandardConfig = () => {
  router.push({
    path: '/standardConfig'
  })
}

/**前往报警配置 */
export const toAlarmConfig = () => {
  router.push({
    path: '/alarmConfig'
  })
}

/**前往数据采集 */
export const toDataCollection = () => {
  router.push({
    path: '/dataCollection'
  })
}

/**前往设备分享 */
export const toDeviceShare = () => {
  router.push({
    path: '/deviceShare'
  })
}

/**前往设备日志 */
export const toDevLog = () => {
  router.push({
    path: '/devLog'
  })
}

/**前往故障反馈 */
export const toFaultFeedback = () => {
  router.push({
    path: '/faultFeedback'
  })
}

/**实时数据 */
export const toLiveDataShow = () => {
  router.push({
    path: '/liveDataShow'
  })
}

/**数据接口 */
export const toInterfaceDocument = () => {
  router.push({
    path: '/interfaceDocument'
  })
}

/**个人设置 */
export const toUserSetting = () => {
  router.push({
    path: '/userSetting'
  })
}

/**关于我们 */
export const toAboutUs = () => {
  router.push({
    path: '/userSetting/home/aboutUs'
  })
}

/**联系我们 */
export const toContactUs = () => {
  router.push({
    path: '/userSetting/home/contactUs'
  })
}

/**监控摄像 */
export const toVideoSurveillance = () => {
  router.push({
    path: '/videoSurveillance'
  })
}
